Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / Satisfy Method / Satisfy(Expression<Func<T,Boolean>>[]) Method
The predicates that the elements of the collection must match. The total number of predicates must exactly match the number of elements in the collection.
In This Topic
    Satisfy(Expression<Func<T,Boolean>>[]) Method
    In This Topic
    Asserts that a collection contains exactly a given number of elements which meet the criteria provided by the element predicates. Assertion fails if it is not possible to find a one-to-one mapping between the elements of the collection and the predicates. The order of the predicates does not need to match the order of the elements.
    Syntax

    Parameters

    predicates
    The predicates that the elements of the collection must match. The total number of predicates must exactly match the number of elements in the collection.
    Exceptions
    ExceptionDescription
    predicates is a null reference (Nothing in Visual Basic).
    predicates is empty.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also